package day013.regex;

public class RegexDemo04 {
    public static void main(String[] args) {
        System.out.println("123".matches("\\d{3}"));
        System.out.println("123456".matches("\\d+"));
        System.out.println("15188888888".matches("1[358]\\d{9}"));
        System.out.println("122103987".matches("[1-9]\\d{4,14}"));
    }
}
